package com.kksoft.readcm.objects;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;

import com.kksoft.readcm.activity.App;

public class ErrorReport
  implements Parcelable
{
  public static final Parcelable.Creator CREATOR = new ak();
  private final String a;
  private String b;
  private String c;

  public ErrorReport(Parcel paramParcel)
  {
    String[] arrayOfString = new String[3];
    paramParcel.readStringArray(arrayOfString);
    String str1 = arrayOfString[0];
    this.a = str1;
    String str2 = arrayOfString[1];
    this.b = str2;
    String str3 = arrayOfString[2];
    this.c = str3;
  }

  public ErrorReport(String paramString)
  {
    this.b = paramString;
    String str = d();
    this.a = str;
  }

  public ErrorReport(Throwable paramThrowable)
  {
    String str1 = d();
    this.a = str1;
    if (paramThrowable != null)
    {
      String str2 = paramThrowable.getClass().getName();
      if (str2 != null)
      {
        String str3 = String.valueOf(this.b);
        String str4 = str3 + str2 + " ";
        this.b = str4;
      }
      if (paramThrowable.getMessage() != null)
      {
        String str5 = String.valueOf(this.b);
        StringBuilder localStringBuilder = new StringBuilder(str5);
        String str6 = paramThrowable.getMessage();
        String str7 = str6;
        this.b = str7;
      }
    }
  }

  private static String d()
  {
	return null;
//    Object localObject = App.r();
//    if (localObject != null);
//    for (localObject = localObject.getClass().getSimpleName().replace("Activity", ""); ; localObject = "")
//      return localObject;
  }

  public final String a()
  {
    if (this.c == null);
    for (String str = ""; ; str = this.c)
      return str;
  }

  public final void a(String paramString)
  {
    this.b = paramString;
  }

  public final String b()
  {
    if (this.b == null);
    for (String str = ""; ; str = this.b)
      return str;
  }

  public final String c()
  {
    return this.a;
  }

  public int describeContents()
  {
    return 0;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    String[] arrayOfString = new String[3];
    String str1 = this.a;
    arrayOfString[0] = str1;
    String str2 = this.b;
    arrayOfString[1] = str2;
    String str3 = this.c;
    arrayOfString[2] = str3;
    paramParcel.writeStringArray(arrayOfString);
  }
}